package com.epower.bo.epowerbook;

import java.util.List;
import com.epower.dataobject.EpowerBookDO;

/***
 * BO层
 * 
 * @author QuickDev
 * 
 */
public interface EpowerBookService {

	// 查询操作
	public EpowerBookDO getEpowerBookByOption(EpowerBookDO epowerBook);

	public List<EpowerBookDO> getEpowerBookListByOption(EpowerBookDO epowerBook);

	/**
	 * 根据book条件获取符合条件的所有bookid和libname
	 * 
	 * @param epowerBook
	 * @return
	 */
	public List<EpowerBookDO> getEpowerBookIdsByOption(EpowerBookDO epowerBook);

	public EpowerBookDO getEpowerBookById(Integer epowerBook);

	// 删除操作
	public boolean deleteEpowerBookById(Integer id);

	public Integer getEpowerBookCountByOption(EpowerBookDO epowerBook);

	// 更新操作
	public boolean updateEpowerBookByOption(EpowerBookDO epowerBook);

	// 添加操作
	public Integer addEpowerBook(EpowerBookDO epowerBook);

	public List<EpowerBookDO> getEpowerBookListPageByOption(EpowerBookDO epowerBook);

	/**
	 * 该课本是否是可以直接阅读单词的课本
	 * 
	 * @param id
	 * @return
	 */
	public boolean isBook(Integer id);
	
	public List<EpowerBookDO> getEpowerBookListByName(EpowerBookDO epowerBook);
	
	public List<EpowerBookDO> getEpowerBookListByPid(int pid);

 
}
